| Author |
Thread Statistics | Show CCP posts - 11 post(s) |

Captain Thunk
Sniggerdly Pandemic Legion
151
|
Posted - 2015.09.16 17:27:31 -
[1] - Quote
Related to this, can you give us CCPs calculation for the warp to 0 point on a celestial body (eg planet/moon/sun)?
I tried working it out myself from bookmarks and celestial data from the SDE, then in a rare moment of clarity, I remembered I'm god damned awful at Maths.
I'm sure I'm not the only one who'd find this formula useful as it's extremely significant with many BMs.
Thanks in advance if you take the time, :grrrCCP: if you don't |

Captain Thunk
Sniggerdly Pandemic Legion
168
|
Posted - 2015.09.18 09:59:46 -
[2] - Quote
:grrrCCP: |

Captain Thunk
Sniggerdly Pandemic Legion
173
|
Posted - 2015.09.26 10:12:08 -
[3] - Quote
CCP FoxFour wrote:Captain Thunk wrote::grrrCCP: Yes, yes we can. That is an easy one. I am at EVEsterdam right now. Ping me sometime after Tuesday and I will try and dig it up. I will also send an email now to some people but yea, wont be able to follow it up until later.

This is why I love you guys, thanks.
|

Captain Thunk
Sniggerdly Pandemic Legion
187
|
Posted - 2015.10.13 21:57:27 -
[4] - Quote
It doesn't help me at all, I'll spend months trying to work out what the hell that says.
But you've given me exactly what I asked for and you are wonderful wonderful people for doing that. I appreciate it a lot.
CCP #1 |

Captain Thunk
Sniggerdly Pandemic Legion
187
|
Posted - 2015.10.14 09:06:00 -
[5] - Quote
CCP FoxFour wrote:Captain Thunk wrote:It doesn't help me at all, I'll spend months trying to work out what the hell that says. But you've given me exactly what I asked for and you are wonderful wonderful people for doing that. I appreciate it a lot. CCP #1 If you figure it out, because **** if I understand it either, feel free to update the documentation with something a bit easier to understand.
Sure, I'm pretty sure that python random seeding is not going to produce the same numbers as in PHP, so I'll whizz through all the affected IDs and produce a table with what Pythons going to return for non-python apps.
It'll be a couple of weeks yet before I look at this as I'm still laughing at PL having won ATXIII and I'm nowhere near done yet. |

Captain Thunk
Sniggerdly Pandemic Legion
187
|
Posted - 2015.10.14 11:53:21 -
[6] - Quote
Megarom wrote:Captain Thunk wrote: Sure, I'm pretty sure that python random seeding is not going to produce the same numbers as in PHP, so I'll whizz through all the affected IDs and produce a table with what Pythons going to return for non-python apps.
I took a quick look in to python source code here https://hg.python.org/cpython/file/2.7/Lib/random.py It should be relatively simple to come up with a function snippet that generates the first pseudorandom value from given seed, but there is some nasty looking comments about hardware specifics affecting the result.
hardware specifics are going to be awkward.
|

Captain Thunk
Sniggerdly Pandemic Legion
188
|
Posted - 2015.10.14 17:42:57 -
[7] - Quote
You're pretty damned awesome CCP Tellus |

Captain Thunk
Sniggerdly Pandemic Legion
188
|
Posted - 2015.10.16 12:15:05 -
[8] - Quote
CCP Tellus wrote:import math import random
def warpin(id, x, y, z, r): j = (random.Random(id).random() - 1.0) / 3.0 t = j - math.asin(x/abs(x) * (z/math.sqrt(x**2 + z**2))) s = 20.0 * (1.0/40.0 * (10 * math.log10(r/10**6) - 39))**20.0 + 1.0/2.0 s = max(0.5, min(s, 10.5)) d = r*(s + 1) + 1000000
return (d * math.sin(t), 1.0/2.0 * r * math.sin(j), d * math.cos(t))
This is not working as expected.
Using Mies I as an example, the SDE shows the values for id, x, t, z and r as: id = 40314597 x = 51241559888 y = -1328521670 z = -43622755751 r = 5100000
warpin returns these as (5261845.3655822901, -357459.55161051254, 8307355.203655405) When added to the original vector for the planet it's: (51236298042.634415, -1328879129.5516105, -43631063106.203659)
While the Y is within 1km of the expected value the x and z values are massively incorrect, a BM at 0km shows the true expected values to be: (51234245041.1568, -1328878026.30105, -43629232504.5183) with a small margin of error due to warp jitter and intended randomness
|

Captain Thunk
Sniggerdly Pandemic Legion
188
|
Posted - 2015.10.16 13:22:39 -
[9] - Quote
Ahh yes, Python isn't my native language.
You truly are awesome, it wouldn't have been unreasonable to assume it could be days or weeks for a reply, yet you've delivered in mere minutes.
Thanks a lot.
CCP #1 |
| |
|